package com.jspxcms.core.security;

import org.apache.shiro.authc.UsernamePasswordToken;

public class UserToken extends UsernamePasswordToken {

    /**
     * 登录方式
     */
    private LoginType loginType;

    /**
     * openid
     */
    private String openid;
    /**
     * 手机号
     */
    private String phone;

    /**
     * 如：微信、微博、qq
     */
    private String provider;

    /**
     * 昵称
     */
    private String nickname;



    public UserToken(String username, String password, LoginType loginType,String openId,String phone) {
        super(username, password);
        this.loginType = loginType;
        this.openid=openId;
        this.phone = phone;
    }


    public LoginType getLoginType() {
        return loginType;
    }

    public void setLoginType(LoginType loginType) {
        this.loginType = loginType;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
